﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel.DataAnnotations;
using MobileSales.Model.Localization;

namespace MobileSales.Model.Documents
{
    [DataContract]
    public class DocumentElement
    {
        [DataMember]
        public int Id { get; set; }
        [DataMember]
        public int DocumentId { get; set; }
        [DataMember]
        [Display(Name = "Unit", ResourceType = typeof(ModelStrings))]
        public string ProductUnitName { get; set; }
        [DataMember]
        [Display(Name = "Tax", ResourceType = typeof(ModelStrings))]
        public double ProductTaxValue { get; set; }
        [DataMember]
        [Display(Name = "Sku", ResourceType = typeof(ModelStrings))]
        public string ProductSku { get; set; }
        [DataMember]
        [Display(Name = "Price", ResourceType = typeof(ModelStrings))]
        public double ProductPrice { get; set; }
        [DataMember]
        [Display(Name = "Quantity", ResourceType = typeof(ModelStrings))]
        public double ProductQuantity { get; set; }
        [DataMember]
        [Display(Name = "Spread", ResourceType = typeof(ModelStrings))]
        public double Spread { get; set; }
        [DataMember]
        [Display(Name = "Symb", ResourceType = typeof(ModelStrings))]
        public string Symb { get; set; }
        [DataMember]
        [Display(Name = "Name", ResourceType = typeof(ModelStrings))]
        public string ProductName { get; set; }
    }
}
